import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

// 挂载前 引入自适应 JS
import './utils/responseRem.js'

// 挂载前 储存 测试 localStorage
import './utils/testLocalStorage.js'

// 引入 css
import './assets/main.css'

// 引入 dayjs
import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn' // 导入本地化语言
dayjs.locale('zh-cn') // 使用本地化语言


const app = createApp(App)

app.config.globalProperties.$dayjs = dayjs

app.use(createPinia())
app.use(router)

app.mount('#app')
